// FeedGroup.h: interface for the FeedGroup class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FEEDGROUP_H__ACA22223_B734_497F_A88A_9088B8FABD8C__INCLUDED_)
#define AFX_FEEDGROUP_H__ACA22223_B734_497F_A88A_9088B8FABD8C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class FeedGroup  
{
	friend class DBManager;
	friend class CFeedTree;
	friend class FeedFetcher;
public:
	FeedGroup();
	FeedGroup(const char* strGroupName, const char* strDescription = NULL, int nParentGroupID = 0, int nFeedGroupID = 0){
		m_strGroupName=strGroupName;
		if(strDescription){
			m_strDescription=strDescription;
		}else{
			m_strDescription = "";
		}

		m_nParentGroupID=nParentGroupID;
		m_nFeedGroupID = nFeedGroupID;
	};
	const char* GetGroupName(){
		return m_strGroupName.c_str();
	}
	virtual ~FeedGroup();
private:
	string m_strGroupName;
	string m_strDescription;

	int m_nFeedGroupID;     // the  ID is filled by DBManager
	int m_nParentGroupID;     // this ID is filled by CFeedTree
};

#endif // !defined(AFX_FEEDGROUP_H__ACA22223_B734_497F_A88A_9088B8FABD8C__INCLUDED_)
